Computer battery pack charge current sensor with gain control

ABSTRACT

A current switch is provided which selects and monitors charge and discharge states of a battery pack of a computer system. The current switch provides a current sense signal which is an indication of the current in the battery pack in order that a charge control circuit can monitor the charge state of the battery pack. The gain of the current sense signal is adjusted, depending on whether the battery pack is in a fast charging, trickle charging, or discharging state when the computer system is in a standby mode. Thus, the current switch provides a sufficient current sense signal for accurate current measurements while dissipating little power for the various battery pack charge states.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a battery pack for providing power to a computer system, and more particularly to a current sensor having a selectable gain to monitor charge and discharge states of the battery pack.

2. Description of the Related Art

Computers have often been needed in locations where conventional alternating current was not available, and rechargeable batteries have been typically used as an alternative source of power, such as nickel-based batteries and lithium ion batteries, which were capable of providing power to a portable or pen-based computer system for several hours. Several rechargeable batteries were typically grouped together to form a battery of a battery pack.

Although the battery pack may have been charged in an external charger, a power supply of the host computer system typically recharged the battery pack when alternating current was available. Since rechargeable batteries have a limited cycle life, it was desirable to maximize the life of and to obtain the maximum power from each battery during every discharge cycle.

The primary design challenge confronting the earlier nickel-based battery chargers arose from the difficulty in determining the charge level of a nickel-based battery since the terminal voltage of the nickel-based battery is substantially the same regardless of the charge level. This problem was addressed by placing the microcontroller and a memory inside the battery pack as disclosed in U.S. Pat. No. 5,315,228, issued May 24, 1994, and entitled "Battery Charge Monitor and Fuel Gauge." In this battery pack, the microcontroller recalculated the total capacity of the battery pack over time, provided a fuel gauge to continually measure the remaining charge level at any given time and measured the battery pack self-discharge during periods of non-use.

A further modification of this arrangement is disclosed in commonly owned U.S. patent application Ser. No. 08/033,821, "Battery Pack Including Static Memory and a Timer for Charge Management," filed Mar. 3, 1993. In this system, the microcontroller which monitors the battery pack was moved to the host computer system. This reduced the size and cost of the battery pack; increased the battery pack shelf-life; and provided a for calculating a self-discharge rate for the battery pack.

The current in the battery of the battery pack was monitored by the microcontroller in order to control charging of the battery, monitor the discharge rate of the battery, maintain fuel gauge data and provide supervisory functions. This current was monitored for several different charge and discharge states of the battery. For example, in order to charge the battery, the battery was first fast charged, resulting in a substantial current, and thereafter the battery was trickle charged resulting in a much smaller current. Thus, when charged, the current level in the battery was a function of the charge state.

The discharge current levels in the battery also varied according to the mode of the host computer system. If the host computer system was in a standby mode, the host computer system required little power and only a small discharge current existed in the battery. However, a much larger current existed when the computer system was fully powered up.

In order to monitor the current in the battery, the prior art typically included placing a current sensor in series with the battery in order to monitor the current for all battery states. Given the variation in current level in accordance with the above-described battery states, the prior art current sensors have not provided accurate current measurements with little power dissipation for all battery states.

A low resistance, current sensing resistor has typically been used as the current sensor which dissipated little power for large battery currents. In order to measure the low voltages across this small current sensing resistor for low battery currents, though, expensive measurement circuitry has been needed to obtain accurate current measurement. Typically, costly operational amplifier circuitry with low offset voltages were used; however, the accuracy of the current measurement was still limited by the existing state of technology.

If a larger resistance was chosen for the current sensing resistor, such a resistor would produce more accurate measurements with less expensive measurement circuitry. However, this larger resistor would dissipate excessive power for large currents, such as those currents usually present during fast charge of the battery.

SUMMARY OF THE PRESENT INVENTION

Briefly, the following invention relates to a current switch placed in series with a battery of a battery pack. The current switch controls the charge and discharge states of the battery as well as provides a current sense signal which is an indication of the current in the battery. The current switch has a selectable gain for the current sense signal which is adjusted according to the level of current in the battery. The current in the battery may either be a fast charge current, a main discharge current, a trickle charge current or a standby discharge current.

A first resistor is used to provide the current sense signal for fast charge and main discharge currents, and a second resistor is used to provide the current sense signal for trickle charge and standby discharge currents. Thus, the current gain switch of the present invention matches the resistance providing the current sense signal with the magnitude of current in the battery.

The current paths of the current switch which control the charge and discharge states of the battery are switched by a first switch and a second switch which control the current flowing through the battery. The first switch is coupled between the battery and the first resistor in order to provide a low resistance current path for large currents. A second switch coupled to the first resistor provides the current sense signal for low currents. A second and a third resistor are switched into the current path of the battery for trickle charge and standby discharge currents.

The first resistor has a lower resistance than the second resistor; therefore, the first resistor provides. a sufficiently large current sense signal for large currents; however, when smaller currents exist in the battery, the second resistor is switched into the current path of the battery which provides a sufficiently large current sense signal for the smaller currents.

Thus, the resistance in series with the battery that provides the current sense signal is matched to the magnitude of current in the battery in order to minimize power dissipation and provide accurate current measurements for more economic measurement circuitry for all battery states.

BRIEF DESCRIPTION OF THE DRAWINGS

A better understanding of the present invention can be obtained when the following detailed description of the preferred embodiment is considered in conjunction with the following drawings, in which:

FIG. 1 is a block diagram illustrating a host computer and battery pack incorporating the present invention;

FIG. 2 is a more detailed schematic diagram of the current switch of FIG. 1;

FIG. 3 is a diagram of the equivalent circuit present in the current switch of FIG. 2 during main discharge or fast charge currents of the battery;

FIG. 4 is a diagram of the equivalent circuit present in the current switch of FIG. 2 during trickle charging of the battery; and

FIG. 5 is a diagram of the equivalent circuit present in the current switch of FIG. 2 when a standby discharge current exists in the battery.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

As shown in FIG. 1, a power source 100 coupled to a battery 102 charges battery 102 when battery 102 needs charging. Power source 100 resides in or is part of a host computer system, and battery 102 resides in a removable battery pack which provides and receives power from and to the host computer system. Power source 100 could be an AC adapter internal or external to the host computer system, or power source 100 could be any other conventional alternate source of power for charging the battery 102.

In the described embodiment, power source 100 is an external AC adapter coupled to the host computer system through an external connector 101. A diode 103 has its anode connected to the power source 100 and its cathode connected to the connector 101. Thus, when power source 100 is connected to the host computer system and enabled, power source 100 only charges battery 102, as any discharging is prevent by diode 103. Power source 100 can be either power or current limited. A charge control circuit 106 controls the charge and discharge states of battery 102.

Battery 102, in the described embodiment, includes four series cells where each cell has two parallel connected rechargeable batteries. Battery 102 can be any configuration of cells including a configuration of just one cell. The positive terminal of battery 102 is connected to a V+ line, and the negative terminal of battery 102 is connected to a V- line. The V+ line is coupled to power source 100 through connector 101.

Connected in series with power source 100 and battery 102 is a current switch 104. The current switch 104 is also connected to charge control circuit 106 to provide a signal CNTRL and receive an ISENSE signal. Charge control circuit 106 controls between the various charge levels: trickle charge, fast charge, main discharge and standby discharge states, of battery 102 by furnishing the current signal, CNTRL, to activate current switch 104. Current switch 104 furnishes the signal, ISENSE, which is an indication of the current flowing in battery 102 for any of the states of battery 102, as described further below.

The ISENSE signal is a voltage level that is a product of the current in battery 102 multiplied by either a first or a second predetermined gain, depending on the state of battery 102. As further explained below, for large battery 102 currents, ISENSE is a product of the first predetermined gain and the battery 102 current. Conversely, for small battery 102 currents, ISENSE is a product of the second predetermined gain and the battery 102 current.

In order to charge battery 102, power source 100 first supplies a large current, known as a fast charge current in the industry, to battery 102. In order to charge battery 102 to its maximum charge capacity, power source 100 finishes charging battery 102 by supplying a much smaller current, known as a trickle charge current in the industry, to battery 102. Current switch 104, as activated by charge control circuit 106, controls whether power source 100 provides trickle charge or fast charge current to battery 102.

A trickle charge state is the state existing when battery 102 is being charged by a trickle charge current. A fast charge state refers to the state of battery 102 when battery 102 is being charged by a fast charge current.

A main discharge state occurs when battery 102 provides a large discharge current, referred to as a main discharge current, to the host computer system when the host computer system is not in a standby mode, i.e., the host computer system is fully powered up. The standby discharge state refers to the state of battery 102 when battery 102 provides a small discharge current, referred to as a standby discharge current, to the host computer system when the host computer system is in its standby mode.

Charge control circuit 106 monitors current in battery 102, provided as the ISENSE signal, in order to control the charging of battery 102, monitor the discharge rate of battery 102, maintain fuel gauge data for battery 102 and provide supervisory functions for battery 102. When charge control circuit 106 asserts the signal CNTRL to current switch 104, current switch 104 responds and allows a large charging current to exist in battery 102 when power source 100 is present. This places battery 102 in either a fast charge or a main discharge state.

During either of the fast charge or main discharge states of battery 102, the elements of switch 102 actually in operation form an equivalent circuit illustrated in FIG. 3. The signal ISENSE is at these times a product of the first predetermined gain and the battery 102 current.

When charge control circuit 106 negates the signal CNTRL, current switch 104 then alters its operating condition and provides a more resistive path for current flowing through battery 102. This equivalent resistive network formed then in switch 102 is shown in FIG. 4. This restriction of current in battery 102 places battery 102 in either a standby discharge state or a trickle charge state, depending again on whether power source 100 is present. During these states of battery 102, ISENSE is a product of the second predetermined gain and the battery 102 current.

Current switch 104 includes a current sense resistor 208 (FIG. 2) that has a terminal 208a for providing ISENSE during fast charge and main discharge states of battery 102. Resistor 208 has a very small ohmage value, on the order of 0.05 ohms for example. The value of resistance for resistor 208 establishes the first predetermined gain. This value of resistance is chosen so resistor 208 dissipates little power while the voltage across resistor 208 is sufficient to provide an ISENSE signal which is measurable by inexpensive measurement circuitry inside charge control circuit 106.

A terminal 208b of resistor 208 is connected to ground, and the terminal 200a of resistor 208 is connected to the source of an N channel, enhancement mode, metal-oxide-semiconductor field-effect-transistor (MOSFET), transistor 200.

Charge control circuit 106 provides the control signal CNTRL to a gate terminal 200g of transistor 200, and the drain of transistor 200 is connected to the V- line. Transistor 200 functions as an on-off switch, activated by CNTRL, with a built-in diode 204 having its anode connected to the terminal 208a and its cathode connected to the V- line to limit switching voltage swings of transistor 200 and to allow high current discharge prior to transistor 200 being turned on. Transistor 200 reduces losses in diode 204 when battery 102 is in a main discharge state. When power source 100 is not present and a small current is required from the battery 102, battery 102 is in a standby discharge state. During this state, diode 204 does not conduct. When the signal CNTRL is asserted, transistor 200 conducts and resistor 208 is connected in series with battery 102, as is indicated in the equivalent circuit of FIG. 3.

Shown in FIG. 3 is the equivalent circuit of current switch 104 when fast charge or main discharge currents exist in battery 102. When charge control circuit 106 asserts CNTRL, resistor 208 is effectively coupled between the V- line and ground. When this occurs, the voltage of the V- line is approximately equal to ISENSE. Resistor 208 provides a very low resistance path as compared to the path created by resistor 210 in series with the parallel resistance of resistor 212 and 214. Thus, resistor 208, having a small value of resistance, sets the effective resistance provided by current switch 104 and resistor 208 provides ISENSE during the fast charge and main discharge states of battery 102.

Terminal 208a of resistor 208 is connected to the source terminal of a transistor 202 which, like transistor 200, also functions as an on-off switch, activated by the signal CNTRL from charge control circuit 106. Transistor 202 is also preferably an N channel, enhancement type, MOSFET. A drain terminal 206d of transistor 202 provides ISENSE when charge control circuit 106 asserts CNTRL. A built-in diode 206 has its anode connected to the source terminal of transistor 202 and its cathode connected to drain terminal 206d of transistor 206d. A gate terminal 202g of transistor 202 receives the signal CNTRL from charge control circuit 106. As shown in the equivalent circuit of FIG. 3, when charge control circuit 106 asserts CNTRL, both transistors 200 and 202 conduct, and the current through battery 102 is directed through resistor 208. ISENSE provides an indication of the current in battery 102.

The value of resistance for resistor 208 is chosen to provide accurate current measurements measurable by inexpensive circuitry for fast charge or main discharge currents. This value of resistance for resistor 208 is also chosen to minimize power dissipation; however, the value of resistance chosen for resistor 208 for these purposes is too low to ensure proper measurements when a trickle charge or a standby discharge current exists in battery 102. Thus, a second resistor 210 is used to provide ISENSE for standby discharge and trickle charge currents. The value of resistance of resistor 210 establishes the second predetermined gain.

The value of resistance for resistor 210 is larger than that for resistor 208 because of the smaller currents levels present when resistor 210 is connected by current switch 104. As practiced, resistor 210 has a resistance of about 0.4 ohms. Thus, the resistance of resistor 210 is some eight times larger than the resistance of resistor 208 which establishes the second predetermined gain to be eight times that of the first predetermined gain.

A first terminal 210b of resistor 210 is connected to ground, and a second terminal 210a of resistor 210 is connected to one terminal of a resistor 212 and one terminal of a resistor 214. The other terminal of resistor 212 is connected to the V- line, and the other terminal of resistor 214 is connected to the drain terminal 206d of transistor 206.

Charge control circuit 106 changes the operating condition of current switch 104 and directs the battery 102 current through resistor 210 by negating the signal CNTRL. Transistors 200 and 202 do not conduct when CNTRL is negated. The measurement circuitry of control circuit 106 typically connected to receive ISENSE has a very high input impedance; therefore, the effective battery 102 current path when CNTRL is negated, as is shown in FIG. 4, is through resistor 212 and resistor 210. Thus, by negating CNTRL, charge control circuit 106 allows a trickle charge current to flow through battery 102 and charge control circuit 106 places battery 102 in a trickle charge state when power source 100 is present. The trickle charge current is selectable through the value of resistance chosen for resistor 212.

Shown in FIG. 4 is an equivalent circuit of current switch 104 when trickle charge current exists in battery 102. For this state, charge control circuit 106 negates CNTRL which removes resistor 208 from the current path of battery 102. As noted, the measuring circuitry of charge control circuit 106 has a very high input impedance; therefore, minimal current flows in resistor 214. Resistor 212 and resistor 210 set the effective current path. Thus, resistor 212 effectively sets the trickle charge limit, and resistor 210 provides an indication of the trickle charge current in battery 102.

The last state provided by current switch 104 is the state when standby discharge current exists in battery 102. For trickle charge currents, resistor 212 limits the current through battery 102; however, this trickle charge current limit is not needed for the standby discharge current. Instead, a Schottky diode 216 is provided in parallel with resistor 212 to bypass resistor 212. The cathode of diode 216 is connected to the V- line, and the anode of diode 216 is connected to terminal 210a of resistor 210. For standby discharge current level, diode 216 conducts and effectively bypasses resistor 212 as a current path. Resistor 212 has a resistance that is several orders of magnitude greater than the resistance of resistor 210. Thus, the effective standby discharge current path consists of only resistor 210 which, as previously noted, has a small value.

Shown in FIG. 5 is an equivalent circuit of current switch 104 when battery is providing power to the host computer system which is in the standby mode. Schottky diode 216, with its low on-state voltage, provides a current path through resistor 210 when charge control circuit 106 negates CNTRL. It is to be noted that diode 204 does not conduct because the on-state voltage of Schottky diode 206 combined with the small voltage drop across resistor 210 is smaller than the on-state voltage of diode 204. Diode 216 effectively bypasses any current limiting by resistor 212. Thus, resistor 210 furnishes ISENSE when battery 102 is in a standby discharge current state.

In summary, when power source 100 is present and enabled, charge control circuit 106, through CNTRL, places battery 102 in either a fast charge or a trickle charge state. When CNTRL is negated and battery 102 is in a trickle charge state, resistor 210 furnishes ISENSE. When CNTRL is asserted and battery 102 is in a fast charge state, resistor 208 furnishes ISENSE having the first predetermined gain.

When power source 100 is disabled or not present, charge control circuit 106, through CNTRL, places battery 102 in either a main discharge or a standby discharge state. When CNTRL is negated and battery 102 is in a standby discharge state, resistor 210 furnishes ISENSE. When CNTRL is asserted and battery 102 is in a main discharge state, resistor 208 furnishes ISENSE having the second predetermined gain.

The foregoing disclosure and description of the invention are illustrative and explanatory thereof, and various changes in the size, shape, materials, components, circuit elements, wiring connections and contacts, as well as in the details of the illustrated circuitry and construction and method of operation may be made without departing from the spirit of the invention. 

What is claimed is:
 1. A current sensor for monitoring discharge currents from a battery while the battery is connected to a system capable of discharging the battery in at least first and second discharge states, the system providing an indication of the first discharge state and an indication of the second discharge state, the current sensor comprising:a first sense resistor for coupling in series with the battery during the first discharge state and having a first terminal for providing a first current signal indicating the current in the battery during the first discharge state; a second sense resistor for coupling in series with the battery during the second discharge state and having a first terminal for providing a second current signal indicating the current in the battery during the second discharge state; a third resistor having a first terminal for receiving the second current signal and a second terminal for providing a sense signal indicative of the current in the battery during the second discharge state; a first switch having a series switched path activated by a control terminal for coupling said first resistor and the battery in series when the system indicates the first discharge state and for decoupling said first resistor and the battery when the system indicates the second discharge state; and a second switch having a series switched path activated by a control terminal, the series switched path of said second switch having a first terminal coupled to the first terminal of said first sense resistor for receiving the first current signal and having a second terminal coupled to the second terminal of said third resistor for providing the sense signal when the system indicates the first discharge state.
 2. The current sensor of claim 1, wherein the system is a computer system that is fully powered up during the first discharge state.
 3. The current sensor of claim 1, wherein the system is a computer system that is in a standby mode during the second discharge state.
 4. The current sensor of claim 1, further comprising:a fourth resistor coupled in series with said second sense resistor and the battery, said fourth resistor provided to select a trickle charge current for the battery.
 5. The current sensor of claim 4, further comprising:a diode coupled in parallel with said fourth resistor, said diode provided to bypass the current limiting provided by said fourth resistor during the second discharge state.
 6. The current sensor of claim 5 wherein said diode is a Schottky diode.
 7. The current sensor of claim 1, wherein the resistance of said first resistor is smaller than the resistance of said second resistor.
 8. The current sensor of claim 1, wherein said first switch is a metal-oxide-semiconductor field-effect-transistor.
 9. The current sensor of claim 1, wherein said second switch is a metal-oxide-semiconductor field-effect-transistor.
 10. A current sensor for monitoring charge currents in a battery while the battery is connected to a system capable of charging the battery in at least first and second charge states, the system providing an indication of the first charge state and an indication of the second charge state, the current sensor comprising:a first sense resistor for coupling in series with the battery during the first charge state and having a first terminal for providing a first current signal indicating the current in the battery during the first charge state; a second sense resistor for coupling in series with the battery during the second charge state and having a first terminal for providing a second current signal indicating the current in the battery during the second charge state; a third resistor having a first terminal for receiving the second current signal and having a second terminal for providing a sense signal indicative of the current in the battery during the second charge state; a first switch having a series switched path activated by a control terminal for coupling said first resistor and the battery in series when the system indicates the first charge state and for decoupling said first resistor and the battery when the system indicates the second charge state; and a second switch having a series switched path activated by a control terminal, the series switched path of said second switch having a first terminal coupled to the first terminal of said first resistor for receiving the first current signal and having a second terminal coupled to the second terminal of said third resistor for providing the sense signal when the system indicates the first charge state.
 11. The current sensor of claim 10, wherein the first charge state indicated by the system is a fast charge state.
 12. The current sensor of claim 10, wherein the second charge state indicated by the system is a trickle charge state.
 13. The current sensor of claim 10, further comprising:a fourth resistor coupled in series with said second sense resistor and the battery, said fourth resistor provided to select the current in the battery during the second charge state.
 14. The current sensor of claim 10, wherein the resistance of said first resistor is smaller than the resistance of said second resistor.
 15. The current sensor of claim 10, wherein said first switch is a metal-oxide-semiconductor field-effect-transistor.
 16. The current sensor of claim 10, wherein said second switch is a metal-oxide-semiconductor field-effect-transistor. 